﻿using System;

namespace UpdateBot2.DownloadSource
{
    class DownloadTarget
    {
        /// <summary>
        /// The title of the program.
        /// </summary>
        public String Title { get; set; }

        /// <summary>
        /// The URL of the program's icon.
        /// </summary>
        public Uri IconURI { get; set; }

        /// <summary>
        /// Program's publisher; ie: Microsoft
        /// </summary>
        public String Publisher { get; set; }

        /// <summary>
        /// The direct URL of the program download.
        /// </summary>
        public Uri DownloadURI { get; set; }

        /// <summary>
        /// The version of the program.
        /// </summary>
        public Version Version { get; set; }

        /// <summary>
        /// The preferred filename of the file.
        /// </summary>
        public String Filename { get; set; }

        /// <summary>
        /// Constructs a representation of an remote download; URLs are not checked for validity.
        /// </summary>
        /// <param name="title"></param>
        /// <param name="iconURL"></param>
        /// <param name="publisher"></param>
        /// <param name="downloadurl"></param>
        public DownloadTarget(String title, Uri iconURL, String publisher, Uri downloadurl,String filename)
        {
            this.Title = title;
            this.IconURI = iconURL;
            this.Publisher = publisher;
            this.DownloadURI = downloadurl;
            this.Filename = filename;
        }
    }
}
